package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 车辆挂车对应表
 * </p>
 *
 * @author LX
 * @since 2018-09-13
 */
@TableName("erp_driver")
public class ErpDriver extends Model<ErpDriver> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 客户id
     */
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 车辆牌号
     */
    @TableField("car_number")
    private String carNumber;
    /**
     * 挂车牌号
     */
    @TableField("trailer_number")
    private String trailerNumber;
    /**
     * 司机1
     */
    @TableField("driver_a")
    private String driverA;
    /**
     * 司机1电话
     */
    @TableField("driver_a_phone")
    private String driverAPhone;
    /**
     * 司机2
     */
    @TableField("driver_b")
    private String driverB;
    /**
     * 司机2电话
     */
    @TableField("driver_b_phone")
    private String driverBPhone;
    @TableField("driver_c")
    private String driverC;
    @TableField("driver_c_phone")
    private String driverCPhone;
    @TableField("driver_d")
    private String driverD;
    @TableField("driver_d_phone")
    private String driverDPhone;

    private transient String carPlate;
    /**
     * 汽车id
     */
    private transient  Integer carId;


    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    public String getCarPlate() {
        return carPlate;
    }

    public void setCarPlate(String carPlate) {
        this.carPlate = carPlate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getTrailerNumber() {
        return trailerNumber;
    }

    public void setTrailerNumber(String trailerNumber) {
        this.trailerNumber = trailerNumber;
    }

    public String getDriverA() {
        return driverA;
    }

    public void setDriverA(String driverA) {
        this.driverA = driverA;
    }

    public String getDriverAPhone() {
        return driverAPhone;
    }

    public void setDriverAPhone(String driverAPhone) {
        this.driverAPhone = driverAPhone;
    }

    public String getDriverB() {
        return driverB;
    }

    public void setDriverB(String driverB) {
        this.driverB = driverB;
    }

    public String getDriverBPhone() {
        return driverBPhone;
    }

    public void setDriverBPhone(String driverBPhone) {
        this.driverBPhone = driverBPhone;
    }

    public String getDriverC() {
        return driverC;
    }

    public void setDriverC(String driverC) {
        this.driverC = driverC;
    }

    public String getDriverCPhone() {
        return driverCPhone;
    }

    public void setDriverCPhone(String driverCPhone) {
        this.driverCPhone = driverCPhone;
    }

    public String getDriverD() {
        return driverD;
    }

    public void setDriverD(String driverD) {
        this.driverD = driverD;
    }

    public String getDriverDPhone() {
        return driverDPhone;
    }

    public void setDriverDPhone(String driverDPhone) {
        this.driverDPhone = driverDPhone;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpDriver{" +
        ", id=" + id +
        ", customerId=" + customerId +
        ", carNumber=" + carNumber +
        ", trailerNumber=" + trailerNumber +
        ", driverA=" + driverA +
        ", driverAPhone=" + driverAPhone +
        ", driverB=" + driverB +
        ", driverBPhone=" + driverBPhone +
        ", driverC=" + driverC +
        ", driverCPhone=" + driverCPhone +
        ", driverD=" + driverD +
        ", driverDPhone=" + driverDPhone +
        "}";
    }
}
